package com.baifendian.service.impl;


import com.baifendian.dao.mapper.CategoryMapper;
import com.baifendian.dao.entity.Category;
import com.baifendian.service.CatalogService;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * @author peng.guo
 * on 2018/1/25.
 */

@Service

public class CatalogServiceImpl implements CatalogService {

  @Resource
  private CategoryMapper categoryMapper;


  @Override
  public Category findCategory(Integer id) {
    Category category = categoryMapper.selectByPrimaryKey(id);
    return category;
  }


}
